package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/** 单字节读 */
public class FISDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis1=new FileInputStream("fos1.dat");
        int d1=fis1.read();
        System.out.println(d1);
        fis1.close();



        FileInputStream fis2=new FileInputStream("fos2.dat");
        int d2=fis2.read();
        System.out.println(d2);
        fis2.close();
    }
}
